<?php 
class IndexController extends DomController {
	
	public function index() {
	}
	
	public function setup() {
		$this->view->metaAuthor = '';
		$this->view->metaKeywords = '';
		$this->view->metaDescription = '';
		$this->view->pageTitle = 'T2NO2 - PORTAL';
		
		$user = Client::getLoggedInUser();
		if( $user ) {
			$this->getSite()->setUser( $user );
			$this->view->user = $user;
		}
	}
		
	public function error404() {
		$this->view->addPartitioner('contents', 'Errors/error404.html');
	}
	
	public function error403() {
		$this->view->addPartitioner('contents', 'Errors/error403.html');
	}

}
?>